/*-------------------------------------------------------------------------
*************************************************************************
 * @doc SPDH
 * @module spdhload.h |  
 *  Header file for SPDH load and unload functions.
 *
 * Product     :   SoftPay 2000 (Global Payment Methodology).
 * <nl>Developer   : SoftPay 2000 team  
 * <nl>Notes       :
 *
 * @head3 SPDH Functions |
 * @index | SPDH
 * @end
 *
 * Copyright (c) 1996-2000 by VeriFone Inc. All rights reserved.
 * 
 * No part of this software may be used, stored, compiled, reproduced,
 * modified, transcribed, translated, transmitted, or transferred, in any form 
 * or by any means whether electronic, mechanical, magnetic, optical, 
 * or otherwise, without the express prior written permission of VeriFone, Inc.
 *
 * Revision History
 * ------------------------------------------------------------------------
 $log:  $
 * ------------------------------------------------------------------------
 ********************************************************************************/
#ifndef SPDHLOAD_H
#define SPDHLOAD_H
#ifdef SPDH_DEFINED

#include <define.h>
/*#define SPDH_INVNUM_SIZE    10*/
typedef struct tagSPDHLoad
{
	void (*vdLoad)();
} SPDHLOAD;

#define TEMP_FILENAME	"temp.dat"
extern SPDHLOAD *psrSPDHLoadDataFuncs;
extern SPDHLOAD *psrSPDHUnLoadDataFuncs;


#define BATCH_TOTALS_FIELD_SIZE  75

int inMakeNCRTotals (TRANSACTION_OBJECT *pobTran, char *pszBatchTotals);
void vdLoadSPDH_B (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_C (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_D (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_E (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_F (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_G (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_H (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_I (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_J (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_K (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_L (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_M (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_N (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_O (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_P (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_Q (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_R (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_S (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_T (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_U (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_V (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_W (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_X (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_a (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_b (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_c (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_d (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_e (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_f (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_g (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_h (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_i (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_j (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_k (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_l (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_m (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_n (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_o (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_q (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_r (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_s (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_t (TRANSACTION_OBJECT *, FHANDLE ); 
void vdLoadSPDH_0 (TRANSACTION_OBJECT *, FHANDLE ); 
                       
void vdUnLoadSPDH_B (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_C (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_D (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_E (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_F (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_G (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_H (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_I (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_J (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_K (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_L (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_M (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_N (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_O (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_P (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_Q (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_R (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_S (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_T (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_U (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_V (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_W (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_X (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_a (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_b (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_c (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_d (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_e (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_f (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_g (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_h (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_i (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_j (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_k (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_l (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_m (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_n (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_o (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_q (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_r (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_s (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_t (TRANSACTION_OBJECT *, FHANDLE ); 
void vdUnLoadSPDH_0 (TRANSACTION_OBJECT *, FHANDLE ); 

void vdOverLoadSPDHLoadDataFuncs (SPDHLOAD srNewLoadDataFuncs[]);
void vdOverLoadSPDHUnLoadDataFuncs (SPDHLOAD srNewUnLoadDataFuncs[]);

#endif
#endif
